<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }

      ul,
      li {
        list-style: none;
      }

      .footer,
      .header {
        width: 1200px;
        height: 80px;
        margin: 0 auto;
        background-color: skyblue;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 40px;
        color: #fff;
      }

      .footer {
        height: 300px;
        font-size: 100px;
      }

      .content {
        width: 1200px;
        padding: 10px 0;
        margin: 0 auto;
      }

      ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
      }

      li {
        width: 280px;
        border: 1px solid #333;
        padding-bottom: 10px;
        margin-bottom: 10px;
      }

      li > img {
        width: 280px;
        height: 320px;
        display: block;
      }

      li > p {
        padding-left: 10px;
        padding-top: 10px;
      }
    </style>
  </head>
  <body>
    <div class="header">网页头部</div>
    <div class="content" id="main">
      <ul>
        <li v-for="item in list">
          <img
            :src="item.pic"
            alt=""
          />
          <p>{{item.name}}</p>
          <p>城市: {{item.city}}</p>
          <p>地址: {{item.address}}</p>
          <p>价格: {{item.price}}</p>
          <p>演出时间: {{item.showTime}}</p>
        </li>
      </ul>
    </div>
    <div class="footer">网页底部</div>
    <script src="../vue.js"></script>
    <script src="./data.js"></script>
    <script>
      Vue.config.productionTip = false
      const vm = new Vue({
        el: "#main",
        data: {
          list: list
        }
      })
      console.log(list);
    </script>
  </body>
</html>
